package com.huawei.crm.job;

import com.huawei.crm.aspect.AopDemo;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author 罗华
 * @date 2022/12/6
 */
@Component
public class DemoScheduled {



    @Scheduled(fixedDelay = 10 * 1000L)
    @AopDemo
    public void demo(){

        System.out.println("定时任务开始了。");
    }



}
